package com.bdqn.bookweb.service.impl;

import com.bdqn.bookweb.dao.BooksDao;
import com.bdqn.bookweb.pojo.Books;
import com.bdqn.bookweb.service.BooksService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BooksServiceImpl implements BooksService {
    @Resource
    private BooksDao booksDao;
    @Override
    public List<Books> selectBooks(String bookName, String bookAuthor, String bookPublish, int currentIndex, int pageSize) {
        List<Books> list = booksDao.selectBooks(bookName, bookAuthor, bookPublish, currentIndex, pageSize);
        return list;
    }

}
